<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Page
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: Menus.php 2010-08-31 16:05 idris $
 * @author     Idris
 */

/**
 * @category   Application_Extensions
 * @package    Page
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 */

class Testimonial_Plugin_Menus
{
  public function onMenuInitialize_UserTestimonialWrite($row)
  {
    $viewer = Engine_Api::_()->user()->getViewer();
    $subject = Engine_Api::_()->core()->getSubject();
    // @todo move to authorization
    return array(
      'label' => 'Write Testimonial',
      'icon' => 'application/modules/Icustom/externals/images/testimonial.png',
      'route' => 'testimonial_general',
      'params' => array(
      'id' => $subject->getIdentity(),
      'format' => 'smoothbox'
      ),
      'class' => 'smoothbox',
       
    );
  }
    
  
}